package com.example.a02back.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author SimpChaos
 * @since 2022-07-02
 */
@TableName("user")

public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "uid", type = IdType.INPUT)

    private String uid;

    /**
     * OPENID
     */
    @TableField(value = "oid")
    private String oid;

    /**
     * 昵称
     */
    @TableField(value = "nickname")

    private String nickname;

    /**
     * 头像
     */
    @TableField(value = "avatarUrl")

    private String avatarUrl;

    /**
     * 性别
     */
    @TableField(value = "gender")

    private String gender;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")

    private LocalDateTime createTime;

    /**
     * token
     */
    @TableField(value = "token")

    private String token;

    /**
     * 收藏商品ID

    @TableField(value = "favoriteItem")
    private Integer favoriteItem;

    /**
     * 收藏活动ID
     *
    @TableField(value = "favoriteTopic")

    private Integer favoriteTopic;*/

    /**
     * 历史敲定订单
     */
    @TableField(value = "trade")

    private Integer trade;

    private String department;

    private String position;


    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }
    public String getOid() {
        return oid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }
    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }
    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public String getToken() {
        return token;
    }

    /**
    public void setToken(String token) {
        this.token = token;
    }
    public Integer getFavoriteItem() {
        return favoriteItem;
    }

    public void setFavoriteItem(Integer favoriteItem) {
        this.favoriteItem = favoriteItem;
    }
    public Integer getFavoriteTopic() {
        return favoriteTopic;
    }

    public void setFavoriteTopic(Integer favoriteTopic) {
        this.favoriteTopic = favoriteTopic;
    }
     */
    public Integer getTrade() {
        return trade;
    }

    public void setTrade(Integer trade) {
        this.trade = trade;
    }

    @Override
    public String toString() {
        return "User{" +
            "uid=" + uid +
            ", openid=" + oid +
            ", nickname=" + nickname +
            ", avatarUrl=" + avatarUrl +
            ", gender=" + gender +
            ", createTime=" + createTime +
            ", token=" + token +
            //", favoriteItem=" + favoriteItem +
            //", favoriteTopic=" + favoriteTopic +
        "}";
    }
}
